import { requestClient } from '#/api/request';

export namespace CommonApi {
  export interface CaptchaResult {
    base64Str?: string;
    code?: string;
    key: string;
  }
}

export async function getCaptchaApi() {
  return requestClient.get<CommonApi.CaptchaResult>('sys/common/captcha');
}
